import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import Nav from './Nav';
import { updateMoudelInfoActiveName } from './Redux';


const mapStateToProps = ( state ) => ({
    activeName: state.moudelInfo.activeName,
})

const mapDispatchToProps = {
    updateMoudelInfoActiveName
}

const NavContainer = connect(
    mapStateToProps,
    mapDispatchToProps
)(Nav);

export default withRouter( NavContainer );